package com.tech.platform.biz_exception;

import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.rpc.RpcException;
import org.springframework.stereotype.Service;

import com.swak.entity.Page;
import com.swak.entity.Parameters;
import com.swak.persistence.QueryCondition;
import com.tech.platform.dto.TenantDTO;
import com.tech.platform.service.TenantService;

/**
 * 测试真实的业务异常
 * 
 * @author DELL
 */
@DubboService(group = "biz_exception")
@Service("Biz_exceptionTenantServiceImpl")
public class TenantServiceImpl implements TenantService {

	@Override
	public TenantDTO def() {
		throw new RpcException(RpcException.BIZ_EXCEPTION, "测试的业务异常");
	}

	@Override
	public TenantDTO get(Long id) {
		return null;
	}

	@Override
	public void save(TenantDTO tenant) {

	}

	@Override
	public Integer delete(TenantDTO tenant) {
		return null;
	}

	@Override
	public Page page(TenantDTO query, Parameters param) {
		return null;
	}

	@Override
	public Page page(QueryCondition query, Parameters param) {
		return null;
	}

}
